<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>后台首页</title>
    <link rel="shortcut icon" th:href="@{/img/favicon.ico}">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" type="text/css" th:href="@{/plugins/bootstrap-5.1.3/css/bootstrap.min.css}">
    <!-- Custom styles for this template -->
    <link rel="stylesheet" type="text/css" th:href="@{/css/admin/index.css}">
    <script th:src="@{/plugins/bootstrap-5.1.3/js/bootstrap.bundle.min.js}"></script>
    <script th:src="@{/plugins/feather-icons-4.9.0/feather.min.js}"></script>
</head>
<body>
    <!-- 顶部导航栏 -->
    <header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
        <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" th:href="@{/admin/index}">后台管理系统</a>
        <button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <input class="form-control form-control-dark w-100" type="text" placeholder="搜索" aria-label="Search">
        <div class="navbar-nav">
            <div class="nav-item text-nowrap">
                <a class="nav-link px-3" th:href="@{/user/logout}">退出登录</a>
            </div>
        </div>
    </header>
    <!-- 主体部分 -->
    <div class="container-fluid">
        <div class="row">
            <nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
                <div class="position-sticky pt-3">
                    <ul class="nav flex-column">
                        <li class="nav-item">
                            <a class="nav-link active" aria-current="page" th:href="@{/admin/main}" target="main">
                                <span data-feather="home"></span>
                                首页
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" th:href="@{/admin/knowledge}" target="main">
                                <span data-feather="book-open"></span>
                                知识列表
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" th:href="@{/admin/photograph}" target="main">
                                <span data-feather="shopping-cart"></span>
                                图库管理
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" th:href="@{/user/getUserList}" target="main">
                                <span data-feather="users"></span>
                                用户管理
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" th:href="@{/admin/logInfo}" target="main">
                                <span data-feather="file"></span>
                                日志管理
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" th:href="@{/admin/sysInfo}" target="main">
                                <span data-feather="bar-chart-2"></span>
                                系统信息
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" th:href="@{/admin/about}" target="main">
                                <span data-feather="layers"></span>
                                关于
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" th:href="@{/admin/shiro_demo}" target="main">
                                <span data-feather="help-circle"></span>
                                shiro示例
                            </a>
                        </li>
                    </ul>
                </div>
            </nav>

            <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
                <iframe name="main" th:src="@{/admin/main}"></iframe>
            </main>
        </div>
    </div>

    <script th:src="@{/js/admin/index.js}"></script>
</body>
</html>